#include <iostream>

using namespace std;

//指针与数组:利用指针访问数组中元素
int main() {
    int arr[] = {1, 2, 3, 4, 5, 6, 7, 8, 9, 10};
    for (int *p = arr; p < arr + 10; p++) {
        cout << *p << "　";
    }
    return 0;
}